<?php
/**
 * Created by PhpStorm.
 * User: zd
 * Date: 2018/10/16
 * Time: 18:03
 */

namespace app\api\validate;


class WorkIDMustBePositiveInt extends BaseValidate
{
    /**
     * 验证规则
     * @var array
     */
    protected $rule = [
        'd_id'=>'require|isPositiveInt',
    ];

    protected  $message = [
        'd_id'=>'部门id必须是正整数'
    ];

    protected function isPositiveInt($value, $rule = '', $data = '', $field = '')
    {
        return parent::isPositiveInt($value, $rule, $data, $field); // TODO: Change the autogenerated stub
    }
}